package exercise.exer4;

public class Calculate {
    public static void main(String[] args){
        int []a=new int[10];
        int min=99;
        int max=10;
        int sum=0;
        for(int i=0;i<10;i++) {
            a[i] = (int) (Math.random() * (99 - 10 + 1)) + 10;
            if(min>a[i])
                min=a[i];
            if(max<a[i])
                max=a[i];
            sum+=a[i];
        }
        System.out.println(min+" "+max+" "+sum+" "+sum/10);

    }
}
